<div id="profile">
	<div id="right_sidebar">
		<div class="sidebar_box">
			<div class="sidebar_content">
				<div class="title">Projekte</div>
				<ul>
				<pp:dynamic name="projects">
					<li><a href="projects.php?id={@pp:id}">{@pp:title}</a></li>
				</pp:dynamic>
				</ul>
			</div>
		</div>
	</div>
	<div id="profile_box">
		<div class="title_action">
			<span class="title">Profil von {@pp:nick}</span>
			<pp:dynamic name="authorized">
			<div class="action_box">
				<div class="action_img">
					<ul>
						<li><a href="profile.php?id={@pp:id}&action=edit" class="action_edit">Bearbeiten</a></li>
						<li><a href="profile.php?id={@pp:id}&action=block" class="action_delete">L&ouml;schen</a></li>
						<pp:dynamic name="admin">
						<li class="sep">&nbsp;</li>
						<li><a href="profile.php?action=new" class="action_add">Neuer User</a></li>
						</pp:dynamic>
					</ul>
				</div>
			</div>
			</pp:dynamic>
		</div>
		<div class="pseudo_clearer">&nbsp;</div>
		<p>
			<span class="label">Name:</span>
			<span>{@pp:name}</span>
		</p>
		<p>
			<span class="label">E-Mail:</span>
			<span><a href="mailto:{@pp:email}">{@pp:email}</a></span>
		</p>
		 <br />
		 <div class="clearer">&nbsp;</div>
		 <div id="messages_profile">
		 	<h2>neueste Nachrichten</h2>
		 	<div class="block_border">
		 		<pp:dynamic name="messages">
		 		<div class="message_block2">
		 			<span class="title">{@pp:title}</span>
		 			<span class="meta">am {@pp:date} von <a href="profile.php?id={@pp:u_id}">{@pp:u_name}</a></span>
		 			<div class="content">
		 				{@pp:text}
		 				<span class="reply_count action_msg_count"><a href="discussions.php?uID={@pp:uId}">{@pp:reply_count} Antwort(en)</a></span>
		 			</div>
		 		</div>
		 		</pp:dynamic>
	 			<pp:dynamic name="no_msgs">
				<div class="no_messages">Keine Nachrichten vorhanden</div>
				</pp:dynamic>
		 		<div id="message_actions">
		 			<a href="discussions.php?uID={@pp:id}">Alle Nachrichten anzeigen</a>
		 		</div>
		 		<div class="clearer">&nbsp;</div>
		 	</div>
		 </div>
	</div>
	<div class="clearer">&nbsp;</div>
</div>